#include "rendering/Material.h"

using namespace Boon;
using namespace Rendering;



Boon::Rendering::Material::Material( void )
	: m_Color(), m_Path( "" ), m_Bounds( Vector3::ZERO, Vector3::ONE )
{

}

bool Boon::Rendering::Material::HasAlpha() const
{
	if( m_Color.a < 1.0f ) return true;
	return false;
}

float Boon::Rendering::Material::GetAlpha() const
{
	return m_Color.a;
}

void Boon::Rendering::Material::SetColor( float r, float g, float b, float a )
{
	m_Color.SetColor( r, g, b, a );
}

void Boon::Rendering::Material::SetColor( const Color c )
{
	m_Color = c;
}

void Boon::Rendering::Material::SetImagePath( const std::string& path )
{
	m_Path = path;
}

const std::string& Boon::Rendering::Material::GetImagePath() const
{
	return m_Path;
}
